package jnpf.controller;

import jnpf.base.ActionResult;
import jnpf.service.ClazzService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/bt/clazz")
public class ClazzController {

    @Autowired
    private ClazzService clazzService;

    //班级列表信息
    @GetMapping("/list/{sessionId}/{actived}")
    public ActionResult listSchool(@PathVariable("sessionId") String sessionId, @PathVariable("actived") Integer actived) {
        return ActionResult.success(clazzService.listClazz(sessionId, actived));
    }
}
